﻿<div class="top_bg">
    <div class="container">
        <div class="row">
            <div class="col-md-3 header col-md-offset-9">
                <span><a href="#">400-1223-1234</a></span>
                <span class="china">
                    <div class="hdtLogBoxWrap">
                        <a href="javascript:void(0)">中文</a>
                    </div>
                </span>
                @*<span class="english"><a href="#">English</a></span>*@
            </div>
        </div>
    </div>
</div>
<div class="ytcms-masthead">
    <div class="container">
        <div class="ytcms_logo">
            @*<img src="~/Content/ytcms/img/logo.jpg" />*@
            @Html.Action("Index", "Ads", new { code = "Logo"})
        </div>
        <div>
            <nav class="ytcms-nav" id="nav">
                @*<a class="ytcms-nav-item" href="/Home/Index" name="Home">首页</a>
                <a class="ytcms-nav-item" href="/XZTour/Index" name="XZTour">西藏跟团游</a>
                <a class="ytcms-nav-item">西藏自由行</a>
                <a class="ytcms-nav-item" href="/Custom/Index" name="Custom">私人订制</a>
                <a class="ytcms-nav-item" href="/Scenery/Index" name="Scenery">景点介绍</a>
                <a class="ytcms-nav-item" href="/Hotel/Index" name="Hotel">酒店介绍</a>
                <a class="ytcms-nav-item" href="/Guide/Index" name="Guide">纯玩攻略</a>
                <a class="ytcms-nav-item" href="#">旅行社介绍</a>*@
                @Html.Action("Index", "Module")
            </nav>
        </div>
    </div>
</div>
@{
    var controller = ViewContext.RouteData.Values["controller"];
}
<script>
    $(function () {
        $("#nav a").each(function () {
            var that = $(this);
            var name = that.attr("name");
            if (name == '@controller') {
                that.addClass("active")
            }
            else {
                that.removeClass("active")
            }
        });
    })
</script>